package org.pearl.spring.mybatis.demo.controller;

import org.pearl.spring.mybatis.demo.dao.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by TD on 2021/11/1
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    UserMapper userMapper;

    @GetMapping("/test")
    public Object test() {
        return userMapper.getUser(1L);
    }
}
